<template>
  <div>
    son2
    <!-- <button @click="change">changeName</button> -->
    <!-- <button @click="changeName(777)">changeName</button> -->
     <button @click="hehe(777)">changeName</button>
     <hr />
     <button @click="changeNameAction(999)">changeNameAction</button>
     
  </div>
</template>
<script>
import {mapMutations, mapActions} from "vuex"
export default {
  methods: {
    // ...mapMutations(["changeName"]),
    ...mapMutations({
      hehe: "changeName"
    }),
    ...mapActions(["changeNameAction"]),
    // change() {
    //   this.$store.commit("changeName",798)
    // }
  },
  mounted() {
    console.log(this)
  }
}
</script>